package com.lxw.nonghe.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lxw.nonghe.entity.ChronicDiseasePolicy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ChronicDiseasePolicyMapper extends BaseMapper<ChronicDiseasePolicy> {
    IPage<ChronicDiseasePolicy> selectChronicDiseasePolicyPage(Page<ChronicDiseasePolicy> page, @Param("diseaseName") String diseaseName);

    // 添加注释说明方法作用和参数含义
    /**
     * 根据条件查询慢病政策分页数据
     * @param page 分页信息
     * @param diseaseName 疾病名称
     * @return 分页数据
     */
    IPage<ChronicDiseasePolicy> selectPolicyPage(Page<ChronicDiseasePolicy> page, @Param("diseaseName") String diseaseName,
                                                 @Param("diseaseCode") String diseaseCode,
                                                 @Param("policyName") String policyName,
                                                 @Param("status") Byte status);
}
